﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x020004F9 RID: 1273
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class ExchangeRogueRewardKeyCsReq : IMessage<ExchangeRogueRewardKeyCsReq>, IMessage, IEquatable<ExchangeRogueRewardKeyCsReq>, IDeepCloneable<ExchangeRogueRewardKeyCsReq>, IBufferMessage
	{
		// Token: 0x17001079 RID: 4217
		// (get) Token: 0x06003999 RID: 14745 RVA: 0x0009E584 File Offset: 0x0009C784
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<ExchangeRogueRewardKeyCsReq> Parser
		{
			get
			{
				return ExchangeRogueRewardKeyCsReq._parser;
			}
		}

		// Token: 0x1700107A RID: 4218
		// (get) Token: 0x0600399A RID: 14746 RVA: 0x0009E58B File Offset: 0x0009C78B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return ExchangeRogueRewardKeyCsReqReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x1700107B RID: 4219
		// (get) Token: 0x0600399B RID: 14747 RVA: 0x0009E59D File Offset: 0x0009C79D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return ExchangeRogueRewardKeyCsReq.Descriptor;
			}
		}

		// Token: 0x0600399C RID: 14748 RVA: 0x0009E5A4 File Offset: 0x0009C7A4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ExchangeRogueRewardKeyCsReq()
		{
		}

		// Token: 0x0600399D RID: 14749 RVA: 0x0009E5AC File Offset: 0x0009C7AC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ExchangeRogueRewardKeyCsReq(ExchangeRogueRewardKeyCsReq other) : this()
		{
			this.count_ = other.count_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600399E RID: 14750 RVA: 0x0009E5D1 File Offset: 0x0009C7D1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ExchangeRogueRewardKeyCsReq Clone()
		{
			return new ExchangeRogueRewardKeyCsReq(this);
		}

		// Token: 0x1700107C RID: 4220
		// (get) Token: 0x0600399F RID: 14751 RVA: 0x0009E5D9 File Offset: 0x0009C7D9
		// (set) Token: 0x060039A0 RID: 14752 RVA: 0x0009E5E1 File Offset: 0x0009C7E1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Count
		{
			get
			{
				return this.count_;
			}
			set
			{
				this.count_ = value;
			}
		}

		// Token: 0x060039A1 RID: 14753 RVA: 0x0009E5EA File Offset: 0x0009C7EA
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as ExchangeRogueRewardKeyCsReq);
		}

		// Token: 0x060039A2 RID: 14754 RVA: 0x0009E5F8 File Offset: 0x0009C7F8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(ExchangeRogueRewardKeyCsReq other)
		{
			return other != null && (other == this || (this.Count == other.Count && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x060039A3 RID: 14755 RVA: 0x0009E628 File Offset: 0x0009C828
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.Count != 0U)
			{
				num ^= this.Count.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x060039A4 RID: 14756 RVA: 0x0009E667 File Offset: 0x0009C867
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x060039A5 RID: 14757 RVA: 0x0009E66F File Offset: 0x0009C86F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x060039A6 RID: 14758 RVA: 0x0009E678 File Offset: 0x0009C878
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.Count != 0U)
			{
				output.WriteRawTag(64);
				output.WriteUInt32(this.Count);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x060039A7 RID: 14759 RVA: 0x0009E6AC File Offset: 0x0009C8AC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.Count != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Count);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x060039A8 RID: 14760 RVA: 0x0009E6EA File Offset: 0x0009C8EA
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(ExchangeRogueRewardKeyCsReq other)
		{
			if (other == null)
			{
				return;
			}
			if (other.Count != 0U)
			{
				this.Count = other.Count;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x060039A9 RID: 14761 RVA: 0x0009E71B File Offset: 0x0009C91B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x060039AA RID: 14762 RVA: 0x0009E724 File Offset: 0x0009C924
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 64U)
				{
					this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
				}
				else
				{
					this.Count = input.ReadUInt32();
				}
			}
		}

		// Token: 0x0400169A RID: 5786
		private static readonly MessageParser<ExchangeRogueRewardKeyCsReq> _parser = new MessageParser<ExchangeRogueRewardKeyCsReq>(() => new ExchangeRogueRewardKeyCsReq());

		// Token: 0x0400169B RID: 5787
		private UnknownFieldSet _unknownFields;

		// Token: 0x0400169C RID: 5788
		public const int CountFieldNumber = 8;

		// Token: 0x0400169D RID: 5789
		private uint count_;
	}
}
